<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理</title>
<style type="text/css">
p {
	font-family: "华文行楷";
}
p {
	font-size: 18px;
}
p {
	color: #63F;
}
#apDiv1 {
	position: absolute;
	width: 300px;
	height: 115px;
	z-index: 1;
	left: 246px;
	top: 742px;
}
#apDiv2 {
	position: absolute;
	width: 200px;
	height: 115px;
	z-index: 1;
}
</style>
</head>

<body background="images/21.jpg">
<table width="60%" border="0" align="center">
  <tr>
    <td><p>水调歌头·明月几时有</p>
      <p>宋代:苏轼</p>
      <p>丙辰中秋，欢饮达旦，大醉，作此篇，兼怀子由。</p>
      <p>明月几时有？把酒问青天。不知天上宫阙，今夕是何年。我欲乘风归去，又恐琼楼玉宇，高处不胜寒。起舞弄清影，何似在人间？(何似 一作：何时；又恐 一作：惟 /   唯恐)<br />
    转朱阁，低绮户，照无眠。不应有恨，何事长向别时圆？人有悲欢离合，月有阴晴圆缺，此事古难全。但愿人长久，千里共婵娟。(长向   一作：偏向)</p></td>
  </tr>
</table>
<p><center>
<form id="form1" name="form1" method="post" action="bs_update_ok.php">
<?php
include("conn.php");		//包含conn.php文件
$arr=mysql_query("select * from tb_news where id='".$_GET['id']."'",$conn);			//定义查询语句
$select=mysql_fetch_array($arr);	
?>
<input name="name" type="text" size="40" value="<?php echo $select['name'];?>"/>  //要编辑的

新闻标题
<textarea name="news" cols="40" rows="10"><?php echo $select['news'];?></textarea> //要编辑的新闻内容
<input type="submit" name="Submit" value="保存" />
<input type="hidden" name="id" value="<?php echo $select['id'];?>" />
</form> 
<?php
       include("conn.php");			//包含conn.php文件
      $select=mysql_query("select * from tb_book where id='".$_GET['id']."'");	//定义查询语句
      $row=mysql_fetch_array($select);	//循环输出查询内容
?>
<form id="form1" name="form1" method="post" action=" bs_update_ok.php">
     <table id="__01" width="802" height="505" border="0" cellpadding="0" cellspacing="0">
    <tr> <td height="20" colspan="3">&nbsp;</td></tr>
    <tr><td rowspan="3">&nbsp;
   

</td>
              <td width="665" height="298"><table width="395" height="225" border="2" align="center" cellpadding="1" cellspacing="1" bordercolor="#FF0000">
    <tr><td width="66">书名：</td>  <td width="317"><label>
              <input name="name" type="text" size="40" value="<?php echo $row['name'];?>"/></label></td></tr>
<tr><td>作者：</td>
          <td><label><input name="pen" type="text" size="40" value="<?php echo $row['pen'];?>"/></label></td></tr>
<tr> <td>出版社：</td>
           <td><label>
           <input name="pub" type="text" size="40" value="<?php echo $row['pub'];?>"/>
           </label></td> </tr>
<tr> <td>出版时间：</td>
           <td><label>
           <input type="text" name="date" value="<?php echo $row['date'];?>"/>
           </label></td></tr>
<tr> <td>价格：</td>
           <td><label>
           <input type="text" name="rate" value="<?php echo $row['rate'];?>"/>
           </label></td></tr>
<tr><td colspan="2"><label>
            <div align="center">
            <input type="submit" name="Submit" value="提交" />
            <input type="submit" name="Submit2" value="取消" />
            <input type="hidden" name="id" value="<?php echo $row['id'];?>" />
            </div>
          </label></td></tr>
      </table></td>
      <td rowspan="2"><div id="apDiv2"><img src="images/43.png" width="202" height="113" /></div></td></tr>
    <tr>
      <td>&nbsp;</td></tr>
  </table>
</form>
<div id="apDiv1"><font face="华文彩云" color="#FF0000" size="+2">
    <script type="text/javascript">
         function startTime()
        {
            var today=new Date();
            var h=today.getHours();
            var m=today.getMinutes();
            var s=today.getSeconds();
            m=checkTime(m);
            s=checkTime(s);
			
            document.getElementById('txt').innerHTML=h+":"+m+":"+s
			
            t=setTimeout('startTime() ',500);  //500毫秒后开始执行计时
           }
                  function checkTime(i)
                 {
                      if (i<10) 
                         {i="0" + i}
                         return i
                  }
				  </script>
 
</head>
<body onload="startTime()">
           <div id="txt"></div>
           
</body></font>
           
   <font face="华文行楷"    color="#660000"  size="2">        
<script language="JavaScript" type="text/javascript">
    var myDay = new Array(7);
  		    myDay[0] = "星期日";
  		    myDay[1] = "星期一";
  		    myDay[2] = "星期二";
  		    myDay[3] = "星期三";
  		    myDay[4] = "星期四";
  		    myDay[5] = "星期五";
  		    myDay[6] = "星期六";


  	  var myDate = new Date();                        //创建日期时间对象
  	  var year = myDate.getFullYear();                   //取得年份
  	  var month = myDate.getMonth()+1;          //取得月份
  	  var date = myDate.getDate();   //取得日期
	 var day = myDate.getDay();	
			   
		
  	  document.write("<h3>今天是："+year+"年"+month+"月"+date+"日"+'&nbsp;'+myDay[day]);
       var hour = myDate.getHours();                 //取得小时数
  	  var minutes = myDate.getMinutes();         //取得分钟数
  	  var seconds = myDate.getSeconds();       //取得秒数
  	 
  	  if(hour<12){
  	        var sString="AM";
  	       }else{
  	  var sString="PM"; 	}
  	if(minutes<10){    //如果分钟数小于10，前加0
  	 minutes="0"+minutes;    }
    if(seconds<10){    //如果秒钟数小于10，前加0
  		seconds="0"+seconds;    }
 document.write("<h3>现在是："+hour+":"+minutes+":"+seconds+" "+sString);
document.write("<br/>");</script></font>
<font face="华文隶书"  color="#FF3366" size="2">
<script language="JavaScript" type="text/javascript">

if(hour>=0&&hour<6){
	document.write(" 早晨好！");
	}
else if(hour>=6&&hour<12)
{
document.write(" 上午好！");
}
else if(hour>=12&&hour<18)
{
 document.write(" 下午好！");
 }
else
{ document.write(" 晚上好！");  }
</script>
</font>
<font face="华文行楷"  color="#3333CC" size="2">
<script language="JavaScript" type="text/javascript">


 if(day>=1&&day<=5)
{
document.write(" 今天是工作日，可能要安排会议。");
}

else
{ document.write(" 今天是周末，可以安排郊游。");  }

</script></font>
<font face="华文彩云"  color="#663333" size="2">
<script language="JavaScript" type="text/javascript">

switch(month)
	 {
		
		case 12:
		case 1: 
		case 2:
		document.write("<h3>寒冷的冬季 ");
		break;
		case 3:
		case 4: 
		case 5:
		document.write("<h3>美丽的春季 ");
		break;
		case 6:
		case 7: 
		case 8:
		
document.write("<h3>火辣的夏季 ");
break;
case 9:
case 10: 
case 11:
 document.write("<h3>金色的秋季 ");
break;
default:
System.out.println("输入错误");
		    }

  	</script></font>
</div>


</body></html>
                                      

